<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

		<h:form>  

    <p:panelMenu style="width:200px">  
        <p:submenu label="Estoque">  
            <p:menuitem value="Verificação de Estoque"  icon="ui-icon-search" />  
            <p:menuitem value="Pedidos"   icon="ui-icon-search" />  
        </p:submenu>  
        <p:submenu label="Cadastros">  
            <p:menuitem value="Pedidos" icon="ui-icon-cart"/>
            <p:menuitem value="Produtos"  icon="ui-icon-suitcase"/>  
            <p:menuitem value="Fornecedores" icon="ui-icon-flag"/>
            <p:menuitem value="Funcionários" icon="ui-icon-person" url="/faces/usuario/manterUsuario.xhtml" rendered="#{sessionScope['COD_PERMISSAO'] == 1}"/>
            <p:menuitem value="Clientes" icon="ui-icon-contact"/>
        </p:submenu>  
        <p:separator />  
        <p:submenu label="Utilitários" >  
            <p:submenu label="Relatórios" icon="ui-icon-extlink"> 
                    <p:menuitem value="Estoque" url="http://www.primefaces.org" icon="ui-icon-copy" />  
                    <p:menuitem value="Pedidos" url="http://www.primefaces.org/documentation.html" icon="ui-icon-copy" />  
                    <p:menuitem value="Fornecedores" url="http://www.primefaces.org/downloads.html" icon="ui-icon-copy" />  
                    <p:menuitem value="Clientes" url="http://www.primefaces.org/support.html" icon="ui-icon-copy" />  
                    <p:menuitem value="Funcionários" url="http://www.primefaces.org/support.html" icon="ui-icon-copy" />  
            </p:submenu>  
            <p:menuitem value="Calculadora"  icon="ui-icon-calculator"/>
        </p:submenu>  
    </p:panelMenu>  
  
</h:form>
</html>
